package com.example.producerconsumer;


/**
 * @version 1.0.0
 * @className: TestProCon
 * @description:
 * @author: rosszhang
 * @date: 2022/5/13 14:21
 */
public class TestProCon {
    public static void main(String[] args) {
        SyncStack stack=new SyncStack();
        Consumer consumer=new Consumer(stack);
        Producter producter=new Producter(stack);

        new Thread(consumer).start();
        new Thread(producter).start();
    }
}
